{% extends "base.html" %}
{%  block content %}
<div id="content-header">
	<h1>Company Records</h1>
</div>

<div id="breadcrumb">
    <a href="index.html" title="Go to Home" class="tip-bottom">Home</a> <a href="/Company/"
    class="tip-bottom">Company System</a> <a href="#" class="current">Company Details</a>
</div>

<br />
<div class="span10 center" style="text-align: center;">					
						<ul class="quick-actions-horizontal">
							<li>
								<a href="href="/Company/{{company.pk}}/addDoc"">
									<i class="icon-calendar"></i>
									<span>Add Document</span>
								</a>
							</li>
							<li>
								<a href="#">
									<i class="icon-shopping-bag"></i>
									<span>Add Employee </span>
								</a>
							</li>

						</ul>
					</div>



<div class="container-fluid">
	<div class="row-fluid">
		<div class="span6">	
			<div class="widget-box widget-calendar">
				<div class="widget-title"><span class="icon"><i class="icon-calendar"></i></span><h5>Company Information</h5></div>
					<div class="widget-content ">


    						   <div class="control-group">
        						  <label class="control-label">{{company.name}} - {{ company.arabic_name }}</label>

    						   </div>

					</div>
				</div>
			</div>
		</div>
</div>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span6">	
			<div class="widget-box widget-calendar">
				<div class="widget-title"><span class="icon"><i class="icon-calendar"></i></span><h5>Related Documents</h5></div>
					<div class="widget-content ">


    						   
				 <table class="table table-bordered table-striped">

				<tr>
					<th> Name </th>
					<th> End Date </th>
					<th> download link</th>
				</tr>
				{% if docs %}
					{% for doc in docs %}
						<tr>
							<td><a  href="/Company/{{company.pk}}/doc/{{doc.id}}">{{ doc.name}} </a></td>
							<td><a  href="/Company/{{company.pk}}/doc/{{doc.id}}">{{ doc.expDate}} </a></td>
							<td><a class="btn " href="{{ doc.document.url }}">Download</a></td>
						</tr>
					{%  endfor %}
				{% endif %}
				</table>
					<div class="widget-content ">


    						   <div class="control-group">
        						 <a class="btn " href="/Company/{{company.pk}}/addDoc">Add Document</a>

    						   </div>

					</div>
			
				
				</div>
			</div>
		</div>
	<div class="row-fluid">
		<div class="span6">	
			<div class="widget-box widget-calendar">
				<div class="widget-title"><span class="icon"><i class="icon-calendar"></i></span><h5>Company Employees</h5></div>
					<div class="widget-content ">


    						   
				 <table class="table table-bordered table-striped">

				<tr>
					<th> Name </th>
					<th> Warnings</th>

				</tr>
				{% if emps %}
					{% for e in emps %}
						<tr>
							<td><a  href="/Company/{{company.pk}}/viewEmployee/{{e.id_no}}/">{{ e}} </a></td>
							<td><a  href="/Company/{{company.pk}}/viewEmployee/{{e.id_no}}/">3</a></td>

						</tr>
					{%  endfor %}
				{% endif %}
				</table>
					<div class="widget-content ">


    						   <div class="control-group">
        						 <a class="btn " href="/Company/{{company.pk}}/addEmployee">Add Employee</a>

    						   </div>

					</div>
			
				
				</div>
			</div>
		</div>
</div>
{% endblock %}



